package com.baoji.auth.mapper;

import com.baoji.auth.entity.Role;
import com.baoji.auth.entity.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
 * @Auther: ghm
 * @Date: 2021/09/24/14:52
 * @Description:
 */
public interface UserMapper extends BaseMapper<User> {

    List<Role> findRoleByUsername(String username);

    void insertRole(Role role);
}
